package lgy.kunpeng.homework;

import java.util.Scanner;

public class op11 {
    public static void main(String[] args) {
        int a[] = new int[10];
        Scanner input = new Scanner(System.in);
        for(int i=0;i<a.length;i++){
            System.out.println("输入第"+(i+1)+"个数");
            a[i] = input.nextInt();
        }
        int sum=0;
        int num=0;
        int avg=0;
        for(int i=0;i<a.length;i++){
            if(a[i]%2==0){
                num++;
                sum+=a[i];
            }
        }
        avg = sum/num;
        System.out.println("偶数个数："+num);
        System.out.println("平均值："+avg);
    }
}
